package com.seven.good.service.impl;

import com.seven.good.dao.UserCollectionMapper;
import com.seven.good.exception.DaoException;
import com.seven.good.exception.ServiceException;
import com.seven.good.pojo.UserCollection;
import com.seven.good.service.UserConnectionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <h3>easyauction</h3>
 *
 * @author : 王胜奔
 * @description : UserConnectionService接口实现类
 * @date : 2019-10-17 00:57
 **/
@Service
public class UserConnectionServiceImpl implements UserConnectionService {
    @Autowired
    private UserCollectionMapper userCollectionMapper;

    @Override
    public void saveUserConnection(UserCollection userCollection) {
        try {
            userCollectionMapper.insertSelective(userCollection);
        }catch (DaoException e){
            e.printStackTrace();
            throw new ServiceException("系统维护中");
        }

    }
}
